package com.example.spring_task;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/*
 * 
 * @author Administrator
 *  @SpringBootApplication 扫描所有类
 * @EnableScheduling 开启定时任务
 * @EnableAsync 开启异步类
 */
@SpringBootApplication
@EnableScheduling
@EnableAsync
public class SpringTaskApplication {
    public static void main(String[] args)
    {
        SpringApplication.run(SpringTaskApplication.class, args);
    }
}